﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Orid.Management.Statistics.Tools.Decomposition.Config;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class OperatorRoleOffline:OperatorRole
    {
       string connectString, accountTableName,accountInRoleTalbeName;

       public OperatorRoleOffline()
        {

            connectString =Setting.SettingInstance.DBAddress_Online;

            accountTableName = Setting.SettingInstance.Accounts_Offline;
            accountInRoleTalbeName = Setting.SettingInstance.AccountInRole_Offline;
        }

       public override  List< Model.ModelOperatorRole> GetOperatorRole()
       { 
            try
            { 
                return GetOperatorRole(connectString, accountTableName,accountInRoleTalbeName);

            }
            catch (System.Data.SqlClient.SqlException ex)
            {
                throw (new Exception(ex.Message));
            }
        
        }
    }
}
